API Documentation
ProgramSourcesHolder.h
1 // ProgramSourcesHolder.h
3 //
5 
6 namespace nkGraphics
7 {
13  struct MacroEntry
14  {
17  } ;
18 }
19 
20 namespace nkGraphics
21 {
26  {
27  public :
28 
37 
97  unsigned int getDefineMacroMaxNumber () const ;
101  unsigned int getDefineMacroMaxNumberPipeline () const ;
105  unsigned int getDefineMacroNumberCompute () const ;
109  unsigned int getDefineMacroNumberRaytracing () const ;
110 
188 
210  void copyDefinesFrom (const ProgramSourcesHolder& other) ;
211  } ;
212 }
nkGraphics::ProgramSourcesHolder::addDefineMacroRaytracing
void addDefineMacroRaytracing(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics::ProgramSourcesHolder::addDefineMacroCompute
void addDefineMacroCompute(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics::ProgramSourcesHolder::getGeometryMemory
nkMemory::StringView getGeometryMemory() const
nkGraphics::ProgramSourcesHolder::setPixelMemory
void setPixelMemory(const nkMemory::StringView &str)
nkGraphics::ProgramSourcesHolder::getVertexMemory
nkMemory::StringView getVertexMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosDomain
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosDomain() const
nkGraphics::ProgramSourcesHolder::getHullMemory
nkMemory::StringView getHullMemory() const
nkGraphics::ProgramSourcesHolder::setRaytracingMemory
void setRaytracingMemory(const nkMemory::StringView &str)
nkGraphics::ProgramSourcesHolder::getDefineMacrosGeometry
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosGeometry() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosVertex
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosVertex() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosRaytracing
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosRaytracing() const
nkGraphics::ProgramSourcesHolder::setVertexMemory
void setVertexMemory(const nkMemory::StringView &str)
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsPipeline
bool hasMinimalDefinitionsPipeline() const
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsRaytracing
bool hasMinimalDefinitionsRaytracing() const
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsGeometry
bool hasMinimalDefinitionsGeometry() const
nkGraphics::ProgramSourcesHolder::addDefineMacroVertex
void addDefineMacroVertex(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics::ProgramSourcesHolder::~ProgramSourcesHolder
~ProgramSourcesHolder()
nkGraphics::ProgramSourcesHolder::getDefineMacroNumberRaytracing
unsigned int getDefineMacroNumberRaytracing() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosCompute
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosCompute() const
nkGraphics::ProgramSourcesHolder::setHullMemory
void setHullMemory(const nkMemory::StringView &str)
nkGraphics::ProgramSourcesHolder::getRaytracingMemory
nkMemory::StringView getRaytracingMemory() const
nkGraphics::ProgramSourcesHolder::ProgramSourcesHolder
ProgramSourcesHolder()
nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumberPipeline
unsigned int getDefineMacroMaxNumberPipeline() const
nkGraphics::ProgramSourcesHolder::addDefineMacroGeometry
void addDefineMacroGeometry(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics::ProgramSourcesHolder::setComputeMemory
void setComputeMemory(const nkMemory::StringView &str)
nkGraphics::ProgramSourcesHolder::getDefineMacrosPixel
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosPixel() const
nkGraphics::ProgramSourcesHolder::getComputeMemory
nkMemory::StringView getComputeMemory() const
nkGraphics::ProgramSourcesHolder::getPixelMemory
nkMemory::StringView getPixelMemory() const
nkGraphics::MacroEntry::_value
nkMemory::String _value
The value given to the macro.
Definition: ProgramSourcesHolder.h:16
nkGraphics::MacroEntry::_key
nkMemory::String _key
The macro key.
Definition: ProgramSourcesHolder.h:15
nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumber
unsigned int getDefineMacroMaxNumber() const
nkMemory::String
Class holding information about a string, with ownership over the data.
Definition: String.h:22
nkGraphics::ProgramSourcesHolder::copyDefinesFrom
void copyDefinesFrom(const ProgramSourcesHolder &other)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::ProgramSourcesHolder
Holds the sources of a program.
Definition: ProgramSourcesHolder.h:26
nkGraphics::ProgramSourcesHolder::getDefineMacrosHull
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosHull() const
nkMemory::BufferCast
Holds a Buffer and make it easy to cast the binary data.
Definition: BufferCast.h:18
nkGraphics::ProgramSourcesHolder::getDomainMemory
nkMemory::StringView getDomainMemory() const
nkGraphics::ProgramSourcesHolder::setGeometryMemory
void setGeometryMemory(const nkMemory::StringView &str)
nkGraphics::MacroEntry
Holds information about a macro entry.
Definition: ProgramSourcesHolder.h:14
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsCompute
bool hasMinimalDefinitionsCompute() const
nkGraphics::ProgramSourcesHolder::addDefineMacroHull
void addDefineMacroHull(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics::ProgramSourcesHolder::addDefineMacroDomain
void addDefineMacroDomain(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics::ProgramSourcesHolder::addDefineMacroPixel
void addDefineMacroPixel(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ProgramSourcesHolder::getDefineMacroNumberCompute
unsigned int getDefineMacroNumberCompute() const
nkGraphics::ProgramSourcesHolder::setDomainMemory
void setDomainMemory(const nkMemory::StringView &str)